package cn.dakaqi.web.util.vo.response;

import cn.dakaqi.entities.GroupVolunteer;
import cn.dakaqi.entities.Volunteer;
import cn.dakaqi.entities.VolunteerInsurance;
import lombok.Data;

import java.util.List;

/**
 * @author  beliveli on 2016/5/5
 */
@Data
public class MemberInfoVo {

    private Volunteer volunteer;
    private int good;
    private int mid;
    private int bad;
    private String qr;
    private VolunteerInsurance insurance;
    private int realNameVerifer;
    private List<GroupVolunteer> groupVolunteers;

    public static MemberInfoVo build(Volunteer volunteer,int good,int mid,int bad,String qr,VolunteerInsurance insurance,int realNameVerifer,List<GroupVolunteer> groupVolunteers){
        MemberInfoVo memberInfoVo = new MemberInfoVo();
        memberInfoVo.setBad(bad);
        memberInfoVo.setGood(good);
        memberInfoVo.setGroupVolunteers(groupVolunteers);
        memberInfoVo.setInsurance(insurance);
        memberInfoVo.setQr(qr);
        memberInfoVo.setMid(mid);
        memberInfoVo.setRealNameVerifer(realNameVerifer);
        memberInfoVo.setVolunteer(volunteer);

        return memberInfoVo;
    }
}
